package com.lb.string;

public class Test {
    public static final String STATIC_CONSTANT = "静态常量";

    static {
        System.out.println("静态代码块1执行");
        method();
    }

    static {
        System.out.println("静态代码块2执行");
    }

    public static void method() {
        System.out.println("静态方法执行，静态常量的值是：" + STATIC_CONSTANT);
    }

    public Test() {
        System.out.println("构造方法执行");
    }

    public static void main(String[] args) {
        Test test = new Test();
    }
}
